package com.huikeportal.model;

import java.io.Serializable;
import java.util.List;

public class MenuInfo implements Comparable<MenuInfo>, Serializable {

	private static final long serialVersionUID = 4905833897810882820L;
	// 角色编号
	private String roldId;
	// 菜单编号
	private Integer menuId;
	// 菜单代码
	private String menuCode;
	// 菜单名称
	private String menuNameNote;
	// 报表服务器路径
	private String reportServerUrl;
	// 报表服务器rdl路径
	private String reportServerPath;
	// 报表外部参数
	private String reportParameters;
	// 菜单名称资源代码
	private String menuNameResCode;
	// 菜单名称
	private String description;
	// 菜单跳转地址
	private String url;
	// 上级菜单编号
	private Integer parentId;
	// 菜单是否启用(1：启动；0：禁用)
	private Integer menuEnable;
	// 菜单类型
	private Integer menuType;
	// 菜单排序编号
	private Integer idx;
	// 子菜单
	private List<MenuInfo> menuList;
	// 自定义菜单顺序,用来页面上显示数字
	private Integer sortId;

	public String getRoldId() {
		return roldId;
	}

	public void setRoldId(String roldId) {
		this.roldId = roldId;
	}

	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	public String getMenuNameNote() {
		return menuNameNote;
	}

	public void setMenuNameNote(String menuNameNote) {
		this.menuNameNote = menuNameNote;
	}

	public String getReportServerUrl() {
		return reportServerUrl;
	}

	public void setReportServerUrl(String reportServerUrl) {
		this.reportServerUrl = reportServerUrl;
	}

	public String getReportServerPath() {
		return reportServerPath;
	}

	public void setReportServerPath(String reportServerPath) {
		this.reportServerPath = reportServerPath;
	}

	public String getReportParameters() {
		return reportParameters;
	}

	public void setReportParameters(String reportParameters) {
		this.reportParameters = reportParameters;
	}

	public String getMenuNameResCode() {
		return menuNameResCode;
	}

	public void setMenuNameResCode(String menuNameResCode) {
		this.menuNameResCode = menuNameResCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getMenuEnable() {
		return menuEnable;
	}

	public void setMenuEnable(Integer menuEnable) {
		this.menuEnable = menuEnable;
	}

	public Integer getMenuType() {
		return menuType;
	}

	public void setMenuType(Integer menuType) {
		this.menuType = menuType;
	}

	public Integer getIdx() {
		return idx;
	}

	public void setIdx(Integer idx) {
		this.idx = idx;
	}

	public List<MenuInfo> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<MenuInfo> menuList) {
		this.menuList = menuList;
	}

	public Integer getSortId() {
		return sortId;
	}

	public void setSortId(Integer sortId) {
		this.sortId = sortId;
	}

	/**
	 * 定义排序
	 */
	public int compareTo(MenuInfo o) {
		return this.getIdx().compareTo(o.getIdx());
	}

}
